package com.jinglin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinglin.entity.po.VideoComment;
import com.jinglin.entity.po.VideoDanmu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评论 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2025-03-24
 */
public interface VideoCommentMapper extends BaseMapper<VideoComment> {
    Integer updateCountInfo(@Param("field")String field,@Param("commentId") String commentId,@Param("userId") String userId,@Param("count") Integer count);

    Integer countWithAllVideo(String userId, String videoNameFuzzy);

    List<VideoComment> listWithAllVideo(int start, int pageSize, String userId, String videoNameFuzzy, String videoId);

}
